<div style="margin-top:1em">
<?php if($this->models->count() > 0): ?>
	<?php foreach($this->models AS $news): ?>
		<?php if((int)$this->config('detailPageId') > 0): ?>
			<?php $url = $this->urlToPage($this->detailPageId, array('news' => array('id' => $news->id))) ?>
		<?php else: ?>
			<?php $url = $this->urlToPage($this->detailPageId, array('news' => array('action' => 'detail', 'id' => $news->id))) ?>
		<?php endif; ?>
		<div class="news-list-item">
			<div class="image">
				<div class="date"><?php echo $this->date('FFF', $news->date) ?></div>
				<?php if($firstImage = $news->getFirstImage()): ?>
					<a href="<?php echo $url ?>"><?php echo $this->image($firstImage, 103) ?></a>
			<?php endif; ?>
			</div>
			<h4><?php echo $news->title ?></h4>
			<div class="rte"><?php echo $news->teaser ?>
				<a href="<?php echo $url ?>"><?php echo $this->translate('newsMoreLink') ?></a>
			</div>
			<div style="clear:both"></div>
		</div>
		<div class="news-list-item-divider"></div>
	<?php endforeach; ?>
<?php else: ?>
	<p>Es sind keine aktuellen News-Meldungen vorhanden.</p>
<?php endif; ?>
</div>